#include<iostream>
using namespace std;
const int N = 110;
string s;
int n;
int main()
{
	s = "ROYG";
	for (int i = 0; i < N; i++) {
		s += " ";
	}
	for (int i = 4; i < N; i++) {
		int k = i % 4;
		s[i]=s[k];
	}
	cin >> n;
	for (int i = 0; i < n - 3; i++) {
		cout << s[i];
	}
	cout << "BIV" << endl;
	return 0;
}